package com.jlcindia;

public class OOPTest20 {

	public static void main(String[] args) {
		User u1=new User();
		//u1.uid=123;
		u1.setuid(123);
		u1.show();
		User u2=new User();
		u2.show();
		//Visitor v1=new Visitor();
		Visitor v2=new Visitor(56,"Ravi");
		v2.display();
	}
}
class User{
	private int uid;
	String name;
	void setuid(int uid){
		this.uid=uid;
		}
	void show(){
		System.out.println("\n"+uid+"\t"+name);
	}
}
class Visitor{
	int id;
	String name;
    Visitor(int id, String name) {
		this.id = id;
		this.name = name;
	}
    void display(){
    	System.out.println("\n"+id+"\t"+name);
    }
	
}
